package com.Lgwd.service.backService.backServiceImpl;

import com.Lgwd.entity.ItemPropertyEntity;
import com.Lgwd.repository.ItemPropertyRepository;
import com.Lgwd.service.backService.ItemPropertyService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class ItemPropertyServiceImpl implements ItemPropertyService {


    @Autowired
    ItemPropertyRepository itemPropertyRepository;
    /**
     * 根据掉落装备的item_code_id查询该装备的属性值
     */
    @Override
    public ItemPropertyEntity findByItemCodeId(Integer item_code_id) {
        return itemPropertyRepository.findByItem_code_id(item_code_id);
    }
}
